package com.wxx.design.decorator.v1;

/**
 * @author Jetwang
 * @version 1.0
 * @date 2022/4/18 15:20
 */
public class Test {
    public static void main(String[] args) {
        BatterCake batterCake = new BatterCake();
        System.out.println(batterCake.getDesc() + ",销售价格:" + batterCake.cost());

        BatterCakeWithEgg batterCakeWithEgg = new BatterCakeWithEgg();
        System.out.println(batterCakeWithEgg.getDesc() + ",销售价格:" + batterCakeWithEgg.cost());

        BatterCakeWithEggSausage batterCakeWithEggSausage = new BatterCakeWithEggSausage();
        System.out.println(batterCakeWithEggSausage.getDesc() + ",销售价格:" + batterCakeWithEggSausage.cost());

        /*
        现在需要加两个蛋 + 两根香肠??
        需要如何实现??? --> v2
         */
    }
}
